<?php
namespace Home\Controller;
use Think\Controller;

class IndexController extends Controller{
  public function _before_index(){
    echo __FUNCTION__."<br/>";
  }
  public function indexAction()  {
    echo __FUNCTION__."<br/>";
  }
  public function _after_index(){
    echo __FUNCTION__."<br/>";
  }

  public function addAction(){
    echo __FUNCTION__."<br/>";
  }

  public function _empty(){
    echo __FUNCTION__."<br/>";
  }

  public function listAction(){
    $urlMode = C("URL_MODEL");
    echo "当前URL模式为:".$urlMode;
    echo "<br/>";
    $index = U("Home/User/index");
    $edit = U("Home/User/edit");
    $login = U("Home/User/login");
    echo "user控制器index操作方法 <a href='$index'>$index</a> <br/>";
    echo "user控制器edit操作方法 <a href='$edit'>$edit</a> <br/>";
    echo "user控制器login操作方法 <a href='$login'>$login</a> <br/>";
  }
}